package edu.strategy.single.hitbybullet;

import robocode.AdvancedRobot;
import robocode.Event;
import edu.strategy.single.Single;

public class ProjectMarsHitByBullletStrategy extends Single{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ProjectMarsHitByBullletStrategy(AdvancedRobot advancedRobot) {
		super(advancedRobot);
	}
	
	@Override
	public void prepare() {}

	@Override
	public void work() {
		super.used();
		super.getAdvancedRobot().setTurnLeft(22.5);
		super.getAdvancedRobot().setTurnGunLeft(360);
		super.getAdvancedRobot().setAhead(50);
		super.getAdvancedRobot().execute();
		super.getAdvancedRobot().setTurnRight(22.5);
		super.getAdvancedRobot().setTurnGunRight(360);
		super.getAdvancedRobot().execute();
	}

	@Override
	public void work(Event e) {
		work();
	}

	@Override
	public String toString() {
		return "ProjectMarsHitByBullletStrategy";
	}
	
}
